package com.zhu.wx.dict;

import com.zhu.wx.service.*;
import com.zhu.wx.strategy.WxRecStrategy;

/**
 * 事件枚举策略
 */
public enum WxEventEnum {


    VIEW("view", "用户点击菜单并跳转", WxEvViewService.class),
    CLICK("click", "用户点击菜单", WxEvClickService.class),
    LOCATION("location", "用户提交地址信息", WxEvLocationService.class),
    SCAN("scan", "用户扫描带参数二维码", WxEvScanService.class),
    UNSUBSCRIBE("unsubscribe", "用户取消订阅", WxEvUnSubscribeService.class),
    SUBSCRIBE("subscribe", "用户订阅", WxEvSubscribeService.class);


    private String name;
    private String desc;
    private Class<WxRecStrategy> clazz;


    WxEventEnum(String name, String desc, Class clazz) {
        this.name = name;
        this.desc = desc;
        this.clazz = clazz;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public Class<WxRecStrategy> getClazz() {
        return clazz;
    }

    public void setClazz(Class<WxRecStrategy> clazz) {
        this.clazz = clazz;
    }
}
